home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Directories / CatInfoLoop.h < prev    next >
Text File  |  2000-06-23  |  603b  |  36 lines

  1. // FileLoop.h
  2.  
  3. #ifndef CatInfoLoop_h
  4. #define CatInfoLoop_h
  5.  
  6. #ifndef CatInfo_h
  7. #include "CatInfo.h"
  8. #endif
  9.  
  10. class CatInfoLoop
  11.   {
  12.     private:
  13.         Directory directory;
  14.         uint16 index;
  15.         bool unfinished;
  16.         
  17.         CatInfo info;
  18.     
  19.     public:
  20.         CatInfoLoop();
  21.         CatInfoLoop( Directory );
  22.         
  23.         void Start( Directory );
  24.         
  25.         bool Finished() const                    { return !unfinished; }
  26.         bool Unfinished() const                    { return unfinished; }
  27.         
  28.         void operator++();
  29.         void operator++(int)                        { operator++(); }
  30.         
  31.         const CatInfo& operator*() const        { return info; }
  32.         const CatInfo *operator->() const    { return &info; }
  33.   };
  34.  
  35. #endif
  36.